#ifndef __SUCKER_H
#define __SUCKER_H

#include "main.h"
#include "tim.h"
#include "M3508.h"

typedef struct
{
	int sucker_roll_left;
	int sucker_roll_right;
	int sucker_roll_target;
	int sucker_pitch_up[2];
	int sucker_pitch_down[2];
	int sucker_pitch_target[2];
	int sucker_pitch_w;//自旋
	int sucker_roll_speed;
	int sucker_pitch_speed;
	int temp;
	uint8_t sucker_init_flag;
}sucker_dataTypeDef;

extern sucker_dataTypeDef Sucker_Data;
void sucker_init(sucker_dataTypeDef* sucker,int roll_speed,int pitch_speed);
void sucker_exe();

//id 1 sucker roll id 2 3 sucker pitch
//speed+ 逆时针向右
//speed- 逆时针向左

#endif
